// 2.2 创建creator函数
export const updateActionCreator = (id) => {
  return {
    type: 'update',
    payload: id,
  };
};

// 3.2 creatorAction
export const delByIdActionCreator = (id) => {
  return {
    type: 'delById',
    payload: id,
  };
};

// 4.2 创建函数
export const addActionCreator = (newTodo) => {
  return {
    type: 'add',
    payload: newTodo,
  };
};
